package com.boyunv.mediator.example01.example02;
/*
 *@description
 *
 *@author boyunv
 *@create 2023/9/10 10:03
 *@version 1.0
 */

public class HouseOwner extends Person{
    
    public HouseOwner(String name, Mediator mediator) {
        super(name, mediator);
    }
    
    //与中介联系的方法
    public  void contact  (String message){
        mediator.constact(message,this);
    }
    
    //获取信息大方法
    public void getMessage(String message){
        System.out.println("房主:"+ name+",获取到的信息:"+message);
    }
        
}
